package com.qqtech.qquan.homemaking.model;

import java.math.BigDecimal;
import java.util.List;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

@SuppressWarnings("serial")
public class HomemakingBaseQuery extends HomemakingBase{
	
	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this,
				ToStringStyle.MULTI_LINE_STYLE);
	}
	
	/**
	 * 距离
	 */
	private BigDecimal distance;
	
	/** 排序:1-按距离;2-按预约人数 */
	private Integer sortType;

	public Integer getSortType() {
		return sortType;
	}

	public void setSortType(Integer sortType) {
		this.sortType = sortType;
	}
	
	/** 一级类别id */
	private Integer firstTypeId;
	
    /** 查询人的经度 */
	private BigDecimal x;
	
    /** 查询人的纬度 */
	private BigDecimal y;
	
	/** 下单时候选择的项目 */
	private List<HomemakingPubitemVo> homemakingPubitemVos;
	
	/** 下单时候选择的时间 */
	private List<HomemakingTimeVo> homemakingTimeVos;
	
    /** 选择的日期，2016-06-21 */
	private java.lang.String serviceDateStr;
	
    /** 选择的时间，8 */
	private java.lang.String serviceHourStr;
	
	/** 社区名称，8 */
	private java.lang.String communityName;
	
	/** 1-休息模式;2-上班模式 */
	private Integer isRestMode;
	
	public java.lang.String getCommunityName() {
		return communityName;
	}

	public void setCommunityName(java.lang.String communityName) {
		this.communityName = communityName;
	}

	public Integer getIsRestMode() {
		if (isRestMode == null) {
			isRestMode = 1;
		}
		return isRestMode;
	}

	public void setIsRestMode(Integer isRestMode) {
		this.isRestMode = isRestMode;
	}

	public Integer getFirstTypeId() {
		return firstTypeId;
	}

	public void setFirstTypeId(Integer firstTypeId) {
		this.firstTypeId = firstTypeId;
	}

	public BigDecimal getDistance() {
		return distance;
	}

	public void setDistance(BigDecimal distance) {
		this.distance = distance;
	}

	public BigDecimal getX() {
		return x;
	}

	public void setX(BigDecimal x) {
		this.x = x;
	}

	public BigDecimal getY() {
		return y;
	}

	public void setY(BigDecimal y) {
		this.y = y;
	}

	public List<HomemakingPubitemVo> getHomemakingPubitemVos() {
		return homemakingPubitemVos;
	}

	public void setHomemakingPubitemVos(List<HomemakingPubitemVo> homemakingPubitemVos) {
		this.homemakingPubitemVos = homemakingPubitemVos;
	}

	public List<HomemakingTimeVo> getHomemakingTimeVos() {
		return homemakingTimeVos;
	}

	public void setHomemakingTimeVos(List<HomemakingTimeVo> homemakingTimeVos) {
		this.homemakingTimeVos = homemakingTimeVos;
	}

	public java.lang.String getServiceDateStr() {
		return serviceDateStr;
	}

	public void setServiceDateStr(java.lang.String serviceDateStr) {
		this.serviceDateStr = serviceDateStr;
	}

	public java.lang.String getServiceHourStr() {
		return serviceHourStr;
	}

	public void setServiceHourStr(java.lang.String serviceHourStr) {
		this.serviceHourStr = serviceHourStr;
	}

}